package com.seckillpro.seckill_pro.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.seckillpro.seckill_pro.pojo.TSecKillOrder;
import com.seckillpro.seckill_pro.pojo.TUser;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lyx
 * @since 2021-03-05
 */
public interface ITSecKillOrderService extends IService<TSecKillOrder> {

    /**
     * 获取秒杀结果
     * return  orderId:成功 -1 秒杀失败，  0 排队中
     *
     * @param user
     * @param goodId
     * @return
     */
    Long getResult(TUser user, Long goodId);
}
